<template>
    <div>
        <div v-if="$route.query.orderId"><Detail/></div>
        <div v-else><AllOrder/></div>
    </div>
</template>

<script lang="ts" setup>
import { useRoute } from "vue-router";
// 引入子组件

import AllOrder from "./allOrder/index.vue";
import Detail from "./detail/index.vue";
let $route = useRoute();
</script>

<style lang="scss" scoped>

</style>